import { forwardRef } from "react";

import IconButtonMui from "@mui/material/IconButton";

import { IconButtonProps } from "./index.types";

export const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>(
	(props: IconButtonProps, ref) => {
		const { children, onClick } = props;

		return <IconButtonMui {...{ onClick, ref }}>{children}</IconButtonMui>;
	},
);
